/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-17 11:01:11
 */
import Vue from 'vue';
import config from '@/assets/js/config';
import ElementUI from 'element-ui';

if (config.env === 'development') {
  require('element-ui/lib/theme-chalk/index.css');
  // require('@/assets/css/element-variables.scss');
} else {
  // 自定义主题
  require('element-ui/lib/theme-chalk/index.css');
  // require('@/assets/css/element-variables.scss');
}

// 全局设置 ElementUI
Vue.use(ElementUI, { size: 'small', zIndex: 1000 });

// 全局挂载组件
import SvgIcon from '@/components/SvgIcon';
Vue.use(SvgIcon);

import TopFilter from '@/components/TopFilter';
Vue.use(TopFilter);

import FormPanel from '../extends/form-export/index'; //合并代码改
Vue.use(FormPanel);

import OssUploadExtends from '../extends/oss-upload/index'; //合并代码改
Vue.use(OssUploadExtends);

import ELTinymce from '../extends/tinymce/index'; //合并代码改
Vue.use(ELTinymce);

import FilterTable from '@/components/BaseTable';
Vue.use(FilterTable);
import FilterTables from '@/components/BaseTables';
Vue.use(FilterTables);

import Drawer from '@/components/Drawer';
Vue.use(Drawer);

import BaseDialog from '@/components/BaseDialog';
Vue.use(BaseDialog);

import LazyLoadTab from '@/components/LazyLoadTab';
Vue.use(LazyLoadTab);

import BasePrint from '@/components/BasePrint';
Vue.use(BasePrint);

import MultiuseButton from '@/components/MultiuseButton';
Vue.use(MultiuseButton);

import AjaxButton from '@/components/AjaxButton';
Vue.use(AjaxButton);

import ButtonArea from '@/components/ButtonArea';
Vue.use(ButtonArea);

import Anchor from '@/components/Anchor';
Vue.use(Anchor);

import BreakSpace from '@/components/BreakSpace';
Vue.use(BreakSpace);

import Spin from '@/components/Spin';
Vue.use(Spin);

import Tinymce from '@/components/Tinymce';
Vue.use(Tinymce);

import UploadFile from '@/components/UploadFile';
Vue.use(UploadFile);

import ImportUploadFile from '@/components/ImportUploadFile';
Vue.use(ImportUploadFile);

import DownloadFile from '@/components/DownloadFile';
Vue.use(DownloadFile);

//断点上传
import uploader from 'vue-simple-uploader';
Vue.use(uploader);

import uploadBreakpoint from '@/components/uploadBreakpoint';
Vue.use(uploadBreakpoint);

// import tencentCOS from '@/components/tencentCOS';
// Vue.use(tencentCOS);

import importFile from '@/components/importFile';
Vue.use(importFile);

import OssUpload from '@/components/OssUpload';
Vue.use(OssUpload);

import videoComponents from '@/components/videoComponents';
Vue.use(videoComponents);
import downloadFileZip from '@/components/downloadFileZip';
Vue.use(downloadFileZip);
import yyImage from '@/components/yyImage';
Vue.use(yyImage);
